package com.fortune.rainshinecommon.exceptions;

import com.fortune.rainshinecommon.enums.ExceptionEnum;


/**
 * @ClassName: SignException
 * @Description: 签名异常
 * @author zhangxin
 * @date 2019年3月20日
 */
public class SignException extends RuntimeException{
    private static final long serialVersionUID = 7309564545981787320L;
    private String errMsg;
    private Integer errCode;

    public SignException(ExceptionEnum exceptionEnum){
        this.errMsg=exceptionEnum.getErrMsg();
        this.errCode=exceptionEnum.getErrCode();
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }
}
